import request from '@/utils/request'

// 查询宣传信息列表
export function listPropaganda(query) {
  return request({
    url: '/kyga/propaganda/list',
    method: 'get',
    params: query
  })
}

// 查询宣传信息详细
export function getPropaganda(id) {
  return request({
    url: '/kyga/propaganda/' + id,
    method: 'get'
  })
}

// 新增宣传信息
export function addPropaganda(data) {
  return request({
    url: '/kyga/propaganda',
    method: 'post',
    data: data
  })
}

// 修改宣传信息
export function updatePropaganda(data) {
  return request({
    url: '/kyga/propaganda',
    method: 'put',
    data: data
  })
}

// 删除宣传信息
export function delPropaganda(id) {
  return request({
    url: '/kyga/propaganda/' + id,
    method: 'delete'
  })
}

// 导出宣传信息
export function exportPropaganda(query) {
  return request({
    url: '/kyga/propaganda/export',
    method: 'get',
    params: query
  })
}